import { createRouter, createWebHistory } from "vue-router";

const routes = [
  { path: "/", redirect: "/index" },
  {
    path: "/index",
    name: "index",
    component: () => import("@/view/index.vue"),
  },
  {
    path: "/car",
    name: "car",
    component: () => import("@/view/car.vue"),
  },
  {
    path: "/domain",
    name: "domain",
    component: () => import("@/view/domain.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(window.__POWERED_BY_QIANKUN__ ? "/test/" : ""),
  routes: routes,
});
export default router;
// 61.138.202.242